package tman.system.peer.tman;

import java.util.List;

import common.peer.PeerAddress;
import common.peer.PeerInfo;
import common.peer.PeerMessage;

public class TManHopCountChange extends PeerMessage {

        private static final long serialVersionUID = -7784983667122039670L;
       
        private PeerInfo sender;
        private boolean relationship;

        public TManHopCountChange(PeerAddress source, PeerAddress destination, PeerInfo sender, boolean relationship) {
                super(source, destination);
                this.relationship = relationship;
                this.sender = sender;
        }
        
        public boolean isParent()
        {
        	return relationship;
        }
       
        public PeerInfo getSenderInfo() {
                return sender;
        }

}